<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('template_script', TEMPLATE_INCLUDEPATH)) : (include template('template_script', TEMPLATE_INCLUDEPATH));?>
<style>
</style>
<div class="row span8">
  <?php  if(is_array($template)) { foreach($template as $manifest_) { ?>
  <?php  if(is_array($manifest_['category'])) { foreach($manifest_['category'] as $item_) { ?>
  <div class="col-xs-2 col-md-2 template_picker">
    <div class="thumbnail" style="text-align:center;width:140px;" title="<?php  echo $item_->title?>,点击打开新窗口查看大图">
      <img  class="imgtip" style="height:100px;overflow:hidden;" src="<?php  echo $this->manifest_resource($manifest_, $item_->thumb)?>" bigimg="<?php  echo $this->manifest_resource($manifest_, $item_->thumb)?>" alt="<?php  echo $item_->title?>">
        <span style="display:block;white-space: nowrap;text-overflow:ellipsis; overflow:hidden">
          <?php  echo $item_->title?>
        </span>
      <div class="radio">
        <label>
          <input type="radio" name="template" value="<?php  echo $manifest_['name'];?>:<?php  echo $item_->file?>"   <?php  if($category['template'] == $manifest_['name'] && $category['templatefile'] == $item_->file) { ?> checked="checked"<?php  } ?>>选择
        </label>
      </div>
    </div>
  </div>
  <?php  } } ?>
  <?php  } } ?>


</div>
